<template>
    <div class="change-secret">
        <!-- 修改账户密码 -->
        <el-form
            :model="accountForm"
            status-icon
            :rules="accontRules"
            ref="accountForm"
            label-width="100px"
            class="log-ruleForm"
        >
            <!--      <el-form-item label="供应商编号" prop="username">-->
            <!--        <el-input-->
            <!--          placeholder="供应商编号"-->
            <!--          v-model="accountForm.username"-->
            <!--          autocomplete="on"-->
            <!--        ></el-input>-->
            <!--      </el-form-item>-->
            <el-form-item label="旧密码" prop="oldPassword ">
                <el-input
                    type="password"
                    placeholder="旧密码"
                    v-model="accountForm.oldPassword"
                    autocomplete="off"
                    prefix-icon="el-icon-lock"
                ></el-input>
            </el-form-item>
            <el-form-item label="新密码" prop="newPassword">
                <el-input
                    type="password"
                    placeholder="新密码"
                    v-model="accountForm.newPassword"
                    autocomplete="off"
                    prefix-icon="el-icon-lock"
                ></el-input>
            </el-form-item>
            <el-form-item label="重复新密码" prop="repeatnewpassword">
                <el-input
                    type="password"
                    placeholder="重复新密码"
                    v-model="accountForm.repeatnewpassword"
                    autocomplete="off"
                    prefix-icon="el-icon-lock"
                ></el-input>
            </el-form-item>
            <el-form-item>
                <el-button class="submitBtn" type="primary" @click="submitAccontForm('accountForm')">
                    修改密码
                </el-button>
            </el-form-item>
        </el-form>
    </div>
</template>

<script lang="ts">
import ChangeScret from './ChangeScret.js';
export default {
    ...ChangeScret
};
</script>

<style scoped lang="less">
@import './ChangeScret.less';
</style>
